#coding:utf-8
#!/usr/bin/env python
icone = 'images/icone.png'
import pygame
from pygame.locals import *
try:
    fonte = "NIGHTMARE_HERO_NORMAL"
except:
    fonte = 'tahoma' 
pygame.init()
ecra = pygame.display.set_mode((800,640))
icone = pygame.image.load(icone).convert_alpha()
pygame.mouse.set_visible(False)
cor, cor1, cor2 = (0,0,0),(0,0,0), (0,0,0)
while True:
    for event in pygame.event.get():
        if event.type == QUIT:
            exit()  
                
    x,y = pygame.mouse.get_pos()
    x-= icone.get_width()/2
    y-= icone.get_height()/2
    
    if (40<x<490) and (180<y<250):
        sizes = 80
        cor = (255,0,0)
    else:
        sizes = 70
        cor = (0,0,0)
        
    if (40<x<490) and (280<y<350):
        size=80
        cor1 = (255,0,0)
    else:
        size = 70 
        cor1 = (0,0,0)
        
    if (600<x<750) and (500<y<600):
        size1 = 60
        cor2 = (255,0,0)
    else:
        size1 = 50
        cor2 = (0,0,0)
                
    ecra.fill((205,201,201))
    ecra.blit(pygame.font.SysFont(fonte, 75).render("Selecione o nivel de dificuldade:" ,True, (0,0,0)), (10,-1))
    ecra.blit(pygame.font.SysFont(fonte, sizes).render("Facil" ,True, cor), (50,200))
    ecra.blit(pygame.font.SysFont(fonte, size).render("Normal" ,True, cor1), (50,300))
    ecra.blit(pygame.font.SysFont(fonte, 70).render("Dificil" ,True, (0,0,0)), (50,400))
    ecra.blit(pygame.font.SysFont(fonte, size1).render("Voltar" ,True, cor2), (650,550))
    ecra.blit(icone,(x,y))
    clique = pygame.mouse.get_pressed()    
    if clique[0]:
        if (40<x<490) and (280<y<350):
            execfile('LoveGames-Normal.py')
        
        elif (600<x<750) and (500<y<600):
            break
            execfile('LGdificuldade.py')
    pygame.display.flip()